---提升（降低）[0]%伤害 [伤害万分比]
---@class BuffEffect3:BaseBuffEffect
BuffEffect3 = ClientFight.CreateClass("BuffEffect3",ClientFight.BaseBuffEffect)
local t = BuffEffect3
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local parameters = {...}
    local result = parameters[3];
    if (not result:isDamage()) then
        return IBuffEffect.FAIL;
    end

    local ratio = buff.buffBean.f_BuffEffectValue[1] * buff.overlay;
    local damage = Utils.calcRatio(result:getDamage(), ratio);
    result:setDamage(result:getDamage() + damage);
    if (result:getDamage() < 0) then
        result:setDamage(0);
    end
    SkillRoleMgr.savePathFile( "[" .. fight.frame .. "][EFFECT]Fighter " .. buff.target.fighterId .. " Buff" .. buff.modelId .. " 总伤害：" .. result.damage .. " 额外附加: " ..damage .." 伤害加成系数: " ..ratio.." %%");

    return ClientFight.BaseBuffEffect.action(self,fight, buff, parameters);
end
t.New()